import Vue from 'vue'
import VueRouter from 'vue-router'
import screen from '../views/screen.vue'
import bar1 from "../components/bar1.vue"
import bar2 from "../components/bar2.vue"
import bing from "../components/bing.vue"
import huan from "../components/huan.vue"
import line from "../components/line.vue"
import map from "../components/map.vue"
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'screen',
    component: screen
  },  {
    path: '/bar1',
    name: 'bar1',
    component: bar1
  },  {
    path: '/bar2',
    name: 'bar2',
    component: bar2
  },  {
    path: '/bing',
    name: 'bing',
    component: bing
  },{
    path: '/huan',
    name: 'huan',
    component: huan
  },{
    path: '/line',
    name: 'line',
    component: line
  },{
    path: '/map',
    name: 'map',
    component: map
  },
]

const router = new VueRouter({
  routes
})

export default router
